package keter.web.controller.admin;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import keter.web.controller.base.KeterBaseController;

/**
 * <p>Class       : paper.web.controller.LoginController
 * <p>Descdription: 登录跳转逻辑控制器
 * @author  顾力行-gulixing@msn.com
 * @version 1.0.0
 */  
@Controller
@PreAuthorize("hasRole('ADMIN')")
@RequestMapping("keter/console")
@RestController
public class ConsoleController extends KeterBaseController {
	public static class Views {
		private static final String Prefix = "keter/console";
		static final String Index = to_(Prefix) + "index";
		static final String Add = to_(Prefix) + "add";
		static final String Update = to_(Prefix) + "update";
		static final String Delete = to_(Prefix) + "delete";
	}
	
	/**
	 * <p>Method ：login
	 * <p>Description : 处理控制台请求
	 * @return 
	 * @author  gulixing@msn.com
	 * @version 1.0.0
	 */
	@RequestMapping(value = Routes.Index, method = RequestMethod.GET)
	public ModelAndView console() {
        return new ModelAndView(getDefaultPath());
	}
}